const app = getApp()

Page({
	data: {
		userInfo: {}
	},
	onLoad() {
    var userInfo = wx.getStorageSync('userInfo')
    this.setData({
      userInfo: userInfo,
      version: app.globalData.version
    });
	},	
  aboutUs : function () {
    wx.showModal({
      title: '声明',
      content: '南充市顺庆区安安妈妈的手工烘焙店版权所有',
      showCancel:false
    })
  },
  logout:function(){
    wx.removeStorageSync('userInfo');
    wx.removeStorageSync('token');
    if (wx.getStorageSync('userInfo') == "" && wx.getStorageSync('token') == ""){
      wx.showModal({
        title: '提示',
        content: '注销成功,请退出小程序重新进入',
        showCancel: false
      })
    }
  }

})